package com.dung.travel;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.Toast;

public class TravelActivity extends Activity implements OnClickListener {
	ImageView img_mb;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        addListener();
    }
    
    public void addListener(){
//    	setContentView(R.layout.mienbac);
    	img_mb = (ImageView)findViewById(R.id.img_mb);
    	img_mb.setOnClickListener(this);
    }

	public void onClick(View v) {
		// TODO Auto-generated method stub
		Log.d("","MIEN BAC: clicked");
		if(v.getId() == R.id.img_mb){
			Intent intent = new Intent(this,MienbacActivity.class);
			startActivity(intent);
			Toast.makeText(this, "MIEN BAC: clicked", 5);
		}
	}
}